<script src="script/my_lightbox.js" language="javascript"></script>
<script>
closeimg='<{$config.weburl}>/image/default/icon_close.gif';
weburl='<{$config.weburl}>';
</script>
<style>
.admin_right_top{}
.admin_right_top a{display:block; border:1px solid #CCCCCC; border-bottom:none; float:left; margin-left:5px; text-decoration:none;  padding:1px; background-color:#E2E2E2; padding-left:8px; padding-right:8px;}
.cominfo p{ text-indent:2em; margin:5px; font-size:13px}
</style>
<div class="admin_right_top">
<{if $smarty.get.type==1}>
	<a style="background-color:#FFFFFF" href="?action=m&m=company&s=cominfo&type=1&menu=user"><{$lang.cominfo}></a>
	<a href="?action=m&m=company&s=cominfo&type=2&menu=user"><{$lang.fzlc}></a>
	<a href="?action=m&m=company&s=cominfo&type=3&menu=user"><{$lang.zzjg}></a>
	<a href="?action=m&m=company&s=cominfo&type=4&menu=user"><{$lang.cgal}></a>
<{elseif $smarty.get.type==2}>
	<a href="?action=m&m=company&s=cominfo&type=1&menu=user"><{$lang.cominfo}></a>
	<a style="background-color:#FFFFFF" href="?action=m&m=company&s=cominfo&type=2&menu=user"><{$lang.fzlc}></a>
	<a href="?action=m&m=company&s=cominfo&type=3&menu=user"><{$lang.zzjg}></a>
	<a href="?action=m&m=company&s=cominfo&type=4&menu=user"><{$lang.cgal}></a>
<{elseif $smarty.get.type==3}>
	<a href="?action=m&m=company&s=cominfo&type=1&menu=user"><{$lang.cominfo}></a>
	<a href="?action=m&m=company&s=cominfo&type=2&menu=user"><{$lang.fzlc}></a>
	<a style="background-color:#FFFFFF" href="?action=m&m=company&s=cominfo&type=3&menu=user"><{$lang.zzjg}></a>
	<a href="?action=m&m=company&s=cominfo&type=4&menu=user"><{$lang.cgal}></a>
<{elseif $smarty.get.type==4}>
	<a href="?action=m&m=company&s=cominfo&type=1&menu=user"><{$lang.cominfo}></a>
	<a href="?action=m&m=company&s=cominfo&type=2&menu=user"><{$lang.fzlc}></a>
	<a href="?action=m&m=company&s=cominfo&type=3&menu=user"><{$lang.zzjg}></a>
	<a style="background-color:#FFFFFF" href="?action=m&m=company&s=cominfo&type=4&menu=user"><{$lang.cgal}></a>	
<{/if}>
</div>
<{if $smarty.get.edit or $de.intro==''}>
<form action="" name="form" method="post" enctype="multipart/form-data">
<table width="100%" border="0" cellpadding="6" cellspacing="1" bgcolor="#DDDDDD" style="margin-bottom:4px;">
  <tr>
    <td width="10%" height="45" align="left" valign="top" bgcolor="#EAEFF3"><{$lang.detail}></td>
    <td width="90%" align="left" valign="top" bgcolor="#FFFFFF">
			<{if $de.fckintro!=''}>
				<{$de.fckintro}>
			<{else}>
				<script type="text/javascript" src="lib/fckeditor/fckeditor.js"></script>
				<script type="text/javascript">
				var oFCKeditor = new FCKeditor( 'intro' ) ;
				oFCKeditor.Config['ToolbarStartExpanded'] = true ;
				<{if $config.language=='en'}>
					oFCKeditor.Config['DefaultLanguage']='en';
				<{else}>
					oFCKeditor.Config['DefaultLanguage']='zh-cn';
				<{/if}>
				oFCKeditor.BasePath		= 'lib/fckeditor/' ;
				oFCKeditor.ToolbarSet	= 'frant' ;
				oFCKeditor.Width='100%';
				oFCKeditor.Height=400;
				oFCKeditor.Create() ;
				</script>
			<{/if}>
		</td>
  </tr>
    <tr>
    <td align="left" valign="top" bgcolor="#EAEFF3"><{$lang.upload_pic}></td>
    <td align="left" valign="top" bgcolor="#FFFFFF">
		<input name="logo" type="text" id="logo" value="<{$de.logo}>" size="60">
		[<a href="javascript:uploadfile('上传LOGO','logo',300,300)"><{$lang.upload}></a>] 
		[<a href="javascript:preview('logo');"><{$lang.preview}></a>]
		[<a href="javascript:delet_pic('logo');"><{$lang.delete}></a>]
	</td>
    </tr>
    <tr>
    <td height="45" align="left" valign="top" bgcolor="#EAEFF3">&nbsp;</td>
    <td align="left" valign="top" bgcolor="#FFFFFF">
	  <input type='submit' name='Submit' value='<{$lang.submit}>' style="width:100px;" />
      <input name="action" type="hidden" id="action" value="submit" />
      <input name="type" type="hidden" id="type" value="<{$smarty.get.type}>" />
	  </td>
    </tr>
</table>
</form>
<{else}>
<table width="100%" border="0" cellpadding="6" cellspacing="1" bgcolor="#DDDDDD" style="margin-bottom:4px;">
  <tr>
    <td bgcolor="#FFFFFF" align="left" valign="top" class="cominfo">
		<div style="text-align:right; font-weight:bold;"><a href="?action=m&m=company&s=cominfo&type=<{$smarty.get.type}>&menu=user&edit=true">修改</a></div>
		<{if $de.logo}><img src="<{$de.logo}>" style=" float:left; border:1px solid #CCCCCC; padding:2px; margin:10px;"><{/if}>
		<{$de.intro}>	</td>
  </tr>
</table>
<{/if}>